Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support TOSCA 1.3 to separate capability Compute from capability Container #599

Open
wants to merge 2 commits into
base: develop
Choose a base branch
from

Conversation

trihoangvo
Copy link
Contributor

@trihoangvo trihoangvo commented Feb 4, 2020

Pull Request description

This PR supports the TOSCA profile v1.3 which introduces the new capability tosca.capabilities.Compute derived from tosca.capabilities.Container as described in GH-589

Description of the change

What I did

  • Add new capability type tosca.capabilities.Compute in data / tosca / normative-types.yml.
  • Adapt tests to use the new capability type as follows:
  1. Update all nodes hosted on a tosca.nodes.Compute and tosca.nodes.WebServer node to have the new requirement from type tosca.capabilities.Compute (instead of tosca.capabilities.Container).
  2. For other nodes, they continue to have the requirement tosca.capabilities.Container as they are hosted on a tosca.nodes.SoftwareComponent.

How to verify it

  • Run unit test: OK
  • Run real test:
  1. Update the repo tosca-normative-types from a4c with the PR Add tosca.capabilities.Compute as in profile v1.3 alien4cloud/tosca-normative-types#2 to add the new capability type tosca.capabilities.Compute.
  2. Use a4c to boot a Compute node with a software component on it.

Description for the changelog

Support TOSCA 1.3 to separate capability Compute from capability Container

Applicable Issues

No issues if you have a new setup. But for existing ones, upgrade existing tosca types in a4c is difficult and I do not know how to do it properly.

* Update all nodes hosting on a "tosca.nodes.Compute" and
  "tosca.nodes.WebServer" node to have a requirement from
  type "tosca.capabilities.Compute" as in TOSCA profile v1.3.
* For other nodes, they continue to have the requirement
  "tosca.capabilities.Container" as they are hosted on a
  SoftwareComponent.

ystiaGH-589
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant